package gui;

import java.awt.*;
import javax.swing.*;

public class Palette extends JPanel
{

    public static final Dimension DEFAULT_SIZE = new Dimension(220, 600);
    
    private DrawingBoard owner;

    public Palette(DrawingBoard owner)
    {
        super();
        
        this.owner = owner;
        
        this.setPreferredSize(DEFAULT_SIZE);

        this.setLayout(new FlowLayout(FlowLayout.LEFT));

        this.add(new SpriteButton(owner, new ImageIcon("Images/space_ship.png")));
        this.add(new SpriteButton(owner, new ImageIcon("Images/space_ship.png")));
        this.add(new SpriteButton(owner, new ImageIcon("Images/space_ship.png")));
        this.add(new SpriteButton(owner, new ImageIcon("Images/space_ship.png")));
        this.add(new SpriteButton(owner, new ImageIcon("Images/space_ship.png")));
    }

}
